import { NgModule } from '@angular/core'
import { RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { MdlModule } from '@angular-mdl/core';
import { TableModule } from 'primeng/table';
import { ScrollPanelModule } from 'primeng/scrollpanel';
import { DynamicDialogModule } from 'primeng/dynamicdialog';
import { AutoCompleteModule } from 'primeng/autocomplete';
import {
  TreeModule, BreadcrumbModule, ToolbarModule, InputTextModule, DialogModule, RadioButtonModule,
  InputTextareaModule, PanelModule, ButtonModule, CalendarModule,MessageModule,MessagesModule,
  CarouselModule, TabViewModule, PanelMenuModule, SharedModule,ToggleButtonModule,FileUploadModule,
  ConfirmDialogModule, ConfirmationService, DropdownModule, DragDropModule, TooltipModule,
  CheckboxModule, InputSwitchModule, ColorPickerModule, LightboxModule, DataGridModule
} from 'primeng/primeng';
import { DataViewModule } from 'primeng/dataview';
import { QkSharedModule } from '../common/module/qkshare.module';
import { formRoutes } from './form.routes';

import { FormShareModule } from './formshare.module';
import { FormAddComponent } from './design/baseinfo/fb-add.component';

@NgModule({
  imports: [
    FormsModule,
    ReactiveFormsModule,
    CommonModule,
    MdlModule,
    TreeModule,
    BreadcrumbModule,
    ToolbarModule,
    PanelModule,
    ButtonModule,
    MessagesModule,
    MessageModule,
    AutoCompleteModule,
    InputTextModule,
    InputTextareaModule,
    TabViewModule,
    ScrollPanelModule,
    CarouselModule,
    PanelMenuModule,
    SharedModule,
    ConfirmDialogModule,
    DialogModule,
    CalendarModule,
    DropdownModule,
    DragDropModule,
    TooltipModule,
    CheckboxModule,
    InputSwitchModule,
    ColorPickerModule,
    LightboxModule,
    DataGridModule,
    RadioButtonModule,
    ToggleButtonModule,
    QkSharedModule,
    FormShareModule,
    TableModule,
    DataViewModule,
    DynamicDialogModule,
    FileUploadModule,
    RouterModule.forChild(formRoutes)
  ],
  declarations: [
    FormAddComponent
  ],
  entryComponents: [
    FormAddComponent
  ],
  exports: [
  ],
  providers: [
    ConfirmationService
  ]
})
export class FormModule { }
